.class Lcn/domob/android/ads/y;
.super Lcn/domob/android/ads/DomobAdView;
.source "SourceFile"

# interfaces
.implements Lcn/domob/android/ads/DomobAdListener;


# static fields
.field private static u:Lcn/domob/android/ads/H;


# instance fields
.field private v:Ljava/lang/String;

.field private w:Ljava/lang/String;

.field private x:Lcn/domob/android/ads/DomobSplashAdListener;

.field private y:Lcn/domob/android/ads/v$a;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    new-instance v0, Lcn/domob/android/ads/H;

    const-class v1, Lcn/domob/android/ads/y;

    invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcn/domob/android/ads/H;-><init>(Ljava/lang/String;)V

    sput-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 3

    const/4 v2, 0x0

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcn/domob/android/ads/DomobAdView;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Init SplashAdView."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v0, v2}, Lcn/domob/android/ads/f;->a(Z)V

    iget-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v0, v2}, Lcn/domob/android/ads/f;->b(Z)V

    :cond_0
    iget-object v0, p0, Lcn/domob/android/ads/y;->f:Lcn/domob/android/ads/B;

    invoke-virtual {v0, v2}, Lcn/domob/android/ads/B;->setVisibility(I)V

    sget-object v0, Lcn/domob/android/ads/DomobAdView$b;->d:Lcn/domob/android/ads/DomobAdView$b;

    invoke-virtual {v0}, Lcn/domob/android/ads/DomobAdView$b;->ordinal()I

    move-result v0

    iput v0, p0, Lcn/domob/android/ads/y;->b:I

    return-void
.end method

.method static synthetic a(Lcn/domob/android/ads/y;)Lcn/domob/android/ads/DomobSplashAdListener;
    .locals 1

    iget-object v0, p0, Lcn/domob/android/ads/y;->x:Lcn/domob/android/ads/DomobSplashAdListener;

    return-object v0
.end method

.method private n()Z
    .locals 5

    new-instance v0, Lcn/domob/android/ads/d;

    invoke-direct {v0}, Lcn/domob/android/ads/d;-><init>()V

    iget-object v1, p0, Lcn/domob/android/ads/y;->c:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/d;->b(Landroid/content/Context;)Lcn/domob/android/ads/I;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0}, Lcn/domob/android/ads/I;->c()J

    move-result-wide v3

    cmp-long v1, v1, v3

    if-ltz v1, :cond_2

    :cond_0
    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "There is no available cache ad."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    :cond_1
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_2
    invoke-virtual {v0}, Lcn/domob/android/ads/I;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcn/domob/android/ads/y;->v:Ljava/lang/String;

    invoke-virtual {v0}, Lcn/domob/android/ads/I;->b()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcn/domob/android/ads/y;->w:Ljava/lang/String;

    new-instance v0, Lcn/domob/android/ads/d;

    invoke-direct {v0}, Lcn/domob/android/ads/d;-><init>()V

    iget-object v1, p0, Lcn/domob/android/ads/y;->c:Landroid/content/Context;

    iget-object v2, p0, Lcn/domob/android/ads/y;->v:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/d;->b(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method a(Landroid/content/Context;)V
    .locals 8

    const/4 v7, 0x0

    const/4 v6, 0x1

    iget-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v0}, Lcn/domob/android/ads/f;->u()Lcn/domob/android/ads/i;

    move-result-object v0

    invoke-virtual {v0}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v0

    invoke-virtual {v0}, Lcn/domob/android/ads/i$b;->o()Z

    move-result v0

    iget-object v1, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v1}, Lcn/domob/android/ads/f;->u()Lcn/domob/android/ads/i;

    move-result-object v1

    invoke-virtual {v1}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v1

    invoke-virtual {v1}, Lcn/domob/android/ads/i$b;->p()I

    move-result v1

    iget-object v2, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    invoke-virtual {v2}, Lcn/domob/android/ads/f;->u()Lcn/domob/android/ads/i;

    move-result-object v2

    invoke-virtual {v2}, Lcn/domob/android/ads/i;->d()Lcn/domob/android/ads/i$b;

    move-result-object v2

    invoke-virtual {v2}, Lcn/domob/android/ads/i$b;->q()I

    move-result v2

    new-instance v3, Lcn/domob/android/ads/v$a;

    invoke-direct {v3, p1}, Lcn/domob/android/ads/v$a;-><init>(Landroid/content/Context;)V

    iget v4, p0, Lcn/domob/android/ads/y;->k:I

    iget v5, p0, Lcn/domob/android/ads/y;->l:I

    invoke-virtual {v3, v4, v5}, Lcn/domob/android/ads/v$a;->a(II)Lcn/domob/android/ads/v$a;

    move-result-object v3

    invoke-virtual {v3, v0}, Lcn/domob/android/ads/v$a;->a(Z)Lcn/domob/android/ads/v$a;

    move-result-object v0

    if-eqz v1, :cond_0

    move v3, v6

    :goto_0
    invoke-virtual {v0, v3, v1}, Lcn/domob/android/ads/v$a;->a(ZI)Lcn/domob/android/ads/v$a;

    move-result-object v0

    if-eqz v2, :cond_1

    move v1, v6

    :goto_1
    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/v$a;->b(ZI)Lcn/domob/android/ads/v$a;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcn/domob/android/ads/v$a;->b(Z)Lcn/domob/android/ads/v$a;

    move-result-object v0

    new-instance v1, Lcn/domob/android/ads/y$1;

    invoke-direct {v1, p0}, Lcn/domob/android/ads/y$1;-><init>(Lcn/domob/android/ads/y;)V

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/v$a;->a(Lcn/domob/android/ads/v$b;)Lcn/domob/android/ads/v$a;

    move-result-object v0

    iput-object v0, p0, Lcn/domob/android/ads/y;->y:Lcn/domob/android/ads/v$a;

    iget-object v0, p0, Lcn/domob/android/ads/y;->y:Lcn/domob/android/ads/v$a;

    invoke-virtual {v0, p0}, Lcn/domob/android/ads/v$a;->a(Landroid/view/View;)V

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Delete old cached ad response."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    new-instance v0, Lcn/domob/android/ads/d;

    invoke-direct {v0}, Lcn/domob/android/ads/d;-><init>()V

    iget-object v1, p0, Lcn/domob/android/ads/y;->c:Landroid/content/Context;

    iget-object v2, p0, Lcn/domob/android/ads/y;->v:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/d;->a(Landroid/content/Context;Ljava/lang/String;)V

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Request another Ad when current cached Ad is shown."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    return-void

    :cond_0
    move v3, v7

    goto :goto_0

    :cond_1
    move v1, v7

    goto :goto_1
.end method

.method a(Lcn/domob/android/ads/DomobSplashAdListener;)V
    .locals 0

    iput-object p1, p0, Lcn/domob/android/ads/y;->x:Lcn/domob/android/ads/DomobSplashAdListener;

    return-void
.end method

.method protected a(Ljava/lang/String;)V
    .locals 1

    new-instance v0, Lcn/domob/android/ads/x;

    invoke-direct {v0, p0, p1}, Lcn/domob/android/ads/x;-><init>(Lcn/domob/android/ads/DomobAdView;Ljava/lang/String;)V

    iput-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    return-void
.end method

.method protected j()V
    .locals 0

    return-void
.end method

.method protected k()V
    .locals 1

    iget-object v0, p0, Lcn/domob/android/ads/y;->y:Lcn/domob/android/ads/v$a;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/y;->y:Lcn/domob/android/ads/v$a;

    invoke-virtual {v0}, Lcn/domob/android/ads/v$a;->a()V

    :cond_0
    return-void
.end method

.method m()Z
    .locals 3

    invoke-direct {p0}, Lcn/domob/android/ads/y;->n()Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Load cache ad successfully."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Load cached Ad:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcn/domob/android/ads/y;->w:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->b(Ljava/lang/String;)V

    invoke-super {p0, p0}, Lcn/domob/android/ads/DomobAdView;->setOnAdListener(Lcn/domob/android/ads/DomobAdListener;)V

    iget-object v0, p0, Lcn/domob/android/ads/y;->a:Lcn/domob/android/ads/f;

    iget-object v1, p0, Lcn/domob/android/ads/y;->w:Ljava/lang/String;

    invoke-static {v1}, Lcn/domob/android/ads/i;->a(Ljava/lang/String;)Lcn/domob/android/ads/i;

    move-result-object v1

    const/4 v2, -0x1

    invoke-virtual {v0, v1, v2}, Lcn/domob/android/ads/f;->a(Lcn/domob/android/ads/i;I)V

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcn/domob/android/ads/y;->requestRefreshAd()V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method public onFailedToReceiveFreshAd(Lcn/domob/android/ads/DomobAdView;)V
    .locals 2

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Failed to load ad or get ad responce."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->e(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/domob/android/ads/y;->x:Lcn/domob/android/ads/DomobSplashAdListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcn/domob/android/ads/y;->x:Lcn/domob/android/ads/DomobSplashAdListener;

    invoke-interface {v0}, Lcn/domob/android/ads/DomobSplashAdListener;->onSplashLoadFailed()V

    :cond_0
    return-void
.end method

.method public onLandingPageClose()V
    .locals 0

    return-void
.end method

.method public onLandingPageOpening()V
    .locals 0

    return-void
.end method

.method public onReceivedFreshAd(Lcn/domob/android/ads/DomobAdView;)V
    .locals 2

    sget-object v0, Lcn/domob/android/ads/y;->u:Lcn/domob/android/ads/H;

    const-string v1, "Get new splash ad responce."

    invoke-virtual {v0, v1}, Lcn/domob/android/ads/H;->a(Ljava/lang/String;)V

    return-void
.end method
